package com.cn.yunhe.struts.controller;

import org.springframework.beans.factory.annotation.Autowired;

import com.cn.yunhe.mybatis.model.UserModel;
import com.cn.yunhe.mybatis.service.IUserService;

public class UserController {
	@Autowired
	private IUserService userService;
	private UserModel user;
	public UserModel getUser() {
		return user;
	}
	public void setUser(UserModel user) {
		this.user = user;
	}
	public String findUser(){
		user=userService.getUser();
		return "success";
		
	}
	public String insertUser(){
		userService.insertUser();
		return "success";
		
	}
	public String deleteUser(){
		userService.deleteUser();
		return "success";
		
	}

}
